﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PostStatus.ascx.cs" Inherits="Controls_Posting_PostStatus" %>
<%@ Register Src="~/Controls/Social/SnSelector.ascx" TagPrefix="uc" TagName="SnSelector" %>
<div class="PostStatus">
    <div class="PostBorder TextBoxBorder">
        <ui:TextBox runat="server" ID="tbText" CssClass="TextBox" TextMode="MultiLine" Rows="1"
            Columns="77" ToolTip="Text" BorderWidth="0" AutoResize="true"></ui:TextBox>
        <ui:Validator ID="vText" runat="server" ControlID="tbText" CssClass="validator"></ui:Validator>
    </div>
    <div class="PostFeatures">
        <ul>
            <li>
                <uc:SnSelector runat="server" ID="snSelector" />
            </li>
        </ul>
        <label class="PostButtonContainer rFloat">
            <asp:Button runat="server" ID="lbtnPost" OnClick="lbtnPost_Click" CssClass="causesValidation PostButton"
                ValidationGroup="post" Text="Post"></asp:Button>
        </label>
        <div class="clear">
        </div>
    </div>
    <div>
        <asp:Label runat="server" ID="lblMsg" />
    </div>
    <div class="AccountsListTitle">
        <h3>
            Available accounts</h3>
        <hr />
        <div class="AccountsListContainer">
            <div class="AccountsList">
                <asp:CheckBoxList runat="server" ID="cblAccounts" DataTextField="Name" DataValueField="ID">
                </asp:CheckBoxList>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript">
    $(document).ready(function () {
        if ($('.AccountsList #<%=cblAccounts.ClientID %>').length == 1)
            $('.AccountsListTitle').show();
    });
</script>
